<?php
//800px*90px;
$ad_header = '<script type="text/javascript"><!--
google_ad_client = "ca-pub-2763008946526563";
/* 横幅728x90广告图片/富媒体广告 */
google_ad_slot = "6825288103";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';

$ad_sidebar_first = '<script type="text/javascript"><!--
google_ad_client = "ca-pub-2763008946526563";
/* [Chnpages] 200x200 左侧 */
google_ad_slot = "5422802686";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';

$ad_sidebar_second = '<script type="text/javascript"><!--
google_ad_client = "ca-pub-2763008946526563";
/* [Chnpages] 200x200 右侧 */
google_ad_slot = "7540110707";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';

$ad_content = '<script type="text/javascript"><!--
google_ad_client = "ca-pub-2763008946526563";
/* [chnpages] 728x90横幅 新 */
google_ad_slot = "4745847623";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';

switch($block) {
  case 'ad_block_header':
    $ad = $ad_header;
    break;
  case 'ad_block_sidebar_first':
    $ad = $ad_sidebar_first;
    break;
  case 'ad_block_content':
    $ad = $ad_content;
    break;
  case 'ad_block_sidebar_second':
    $ad = $ad_sidebar_second;
    break;
}

?>

<div class="advertisement"><?php echo $ad?></div>